package com.zucc.eye.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import java.util.Date;
import java.util.List;
import java.io.Serializable;
import javax.persistence.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * @description issue
 * @author zhengkai.blog.csdn.net
 * @date 2022-02-09
 */
@Entity
@Builder
@AllArgsConstructor
@Data
@Table(name="issue")
@ApiModel("issue")
public class Issue implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty("id")
    //@GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
    * user_name
    */
    @ApiModelProperty("user_name")
    @Column(name="user_name")
    private String userName;

    /**
    * user_url
    */
    @ApiModelProperty("user_url")
    @Column(name="user_url")
    private String userUrl;

    /**
    * user_avatar
    */
    @ApiModelProperty("user_avatar")
    @Column(name="user_avatar")
    private String userAvatar;

    /**
    * date
    */
    @ApiModelProperty("date")
    @Column(name="date")
    private Date date;

    /**
    * url
    */
    @ApiModelProperty("url")
    @Column(name="url")
    private String url;

    /**
    * body
    */
    @ApiModelProperty("body")
    @Column(name="body")
    private String body;

    /**
    * repository_url
    */
    @ApiModelProperty("repository_url")
    @Column(name="repository_url")
    private String repositoryUrl;

    /**
    * labels_url
    */
    @ApiModelProperty("labels_url")
    @Column(name="labels_url")
    private String labelsUrl;

    /**
    * comments_url
    */
    @ApiModelProperty("comments_url")
    @Column(name="comments_url")
    private String commentsUrl;

    /**
    * events_url
    */
    @ApiModelProperty("events_url")
    @Column(name="events_url")
    private String eventsUrl;

    /**
    * html_url
    */
    @ApiModelProperty("html_url")
    @Column(name="html_url")
    private String htmlUrl;

    /**
    * node_id
    */
    @ApiModelProperty("node_id")
    @Column(name="node_id")
    private String nodeId;

    /**
    * number
    */
    @ApiModelProperty("number")
    @Column(name="number")
    private Integer number;

    /**
    * title
    */
    @ApiModelProperty("title")
    @Column(name="title")
    private String title;

    /**
    * user
    */
    @ApiModelProperty("user")
    @Column(name="user")
    private String user;

    /**
    * state
    */
    @ApiModelProperty("state")
    @Column(name="state")
    private String state;

    /**
    * labels
    */
    @ApiModelProperty("labels")
    @Column(name="labels")
    private String labels;

    /**
    * locked
    */
    @ApiModelProperty("locked")
    @Column(name="locked")
    private Integer locked;

    /**
    * assignee
    */
    @ApiModelProperty("assignee")
    @Column(name="assignee")
    private String assignee;

    /**
    * assignees
    */
    @ApiModelProperty("assignees")
    @Column(name="assignees")
    private String assignees;

    /**
    * milestone
    */
    @ApiModelProperty("milestone")
    @Column(name="milestone")
    private String milestone;

    /**
    * comments
    */
    @ApiModelProperty("comments")
    @Column(name="comments")
    private Integer comments;

    /**
    * created_at
    */
    @ApiModelProperty("created_at")
    @Column(name="created_at")
    private Date createdAt;

    /**
    * updated_at
    */
    @ApiModelProperty("updated_at")
    @Column(name="updated_at")
    private Date updatedAt;

    /**
    * closed_at
    */
    @ApiModelProperty("closed_at")
    @Column(name="closed_at")
    private Date closedAt;

    /**
    * author_association
    */
    @ApiModelProperty("author_association")
    @Column(name="author_association")
    private String authorAssociation;

    /**
    * active_lock_reason
    */
    @ApiModelProperty("active_lock_reason")
    @Column(name="active_lock_reason")
    private String activeLockReason;

    /**
    * reactions
    */
    @ApiModelProperty("reactions")
    @Column(name="reactions")
    private String reactions;

    /**
    * timeline_url
    */
    @ApiModelProperty("timeline_url")
    @Column(name="timeline_url")
    private String timelineUrl;

    /**
    * performed_via_github_app
    */
    @ApiModelProperty("performed_via_github_app")
    @Column(name="performed_via_github_app")
    private Integer performedViaGithubApp;

    public Issue() {
    }

}